package com.example.mallproduct.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author yang
 */

@ApiModel(description= "返回响应数据")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDTO implements Serializable {

    @ApiModelProperty(value = "商品名称")
    private String pname;

    @ApiModelProperty(value = "商品价格")
    private Double pprice;

    @ApiModelProperty(value = "库存")
    private Integer stock;
}
